package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Set;

@Data
public class SelectInstanceByKeywordDTO extends ProjectIdDTO {

    @Schema(title = "项目id")
    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @Schema(title = "模型id")
    private String instanceId;

    @Schema(title = "模型属性key")
    private String key;

    @Schema(title = "可选模型类型")
    private String moreBtnCondition;

    @Schema(title = "自定义模型筛选方法")
    private String checkMethod;

    @Schema(title = "当前页")
    private Integer page;

    @Schema(title = "页面大小")
    private Integer size;

    @Schema(title = "分类id")
    private Set<String> classifierIds;

    @Schema(title = "关键字")
    private String keyword;

}
